/**
 * Copyright: Copyright (c) 2018, 2022
 * Company: 杭州叙简科技股份有限公司
 */
package cn.com.scooper.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 项目中的常量定义
 *
 * @author LuLihong
 * @date 2018-05-03
 */
public final class CommonConstant {
    /**
     *  参数TOKEN
     */
    public static final String P_TOKEN = "token";

    /**
     * 主题默认值
     */
    public static final String SKIN_DEFAULT = "light";

    private CommonConstant() { }

    public static final String REPORT_DELIMITER = "@@";

    public class ReportEnterpriseName {
        public static final String KS_ENTERPRISE_NFSN = "NFSN";//桐庐南方水泥有限公司
        public static final String KS_ENTERPRISE_HSSN = "HSSN";//桐庐红狮水泥有限公司
        public static final String KS_ENTERPRISE_CYKY = "CYKY";//桐庐昌宇矿业有限公司
    }

    public class ReportDataType {
        public static final String KS_REPORT_ACTUAL_DATA = "01";//实时数据
        public static final String KS_REPORT_ALARM_DATA = "02";//实时数据
    }

    public class ReportServiceId {
        public static final String KS_REPORT_ACTUAL_DATA = "KS_REPORT_ACTUAL_DATA";//实时数据
        public static final String KS_REPORT_ALARM_DATA = "KS_REPORT_ALARM_DATA";//实时数据
    }

    public class  ReportKey{
        public static final String KS_REPORT_APPID = "ks.report.appId.";//appId
        public static final String KS_REPORT_GATEWAYID = "ks.report.gatewayId.";//网管ID
        public static final String KS_REPORT_ENTERPRISEID = "ks.report.enterpriseId.";//企业ID
        public static final String KS_REPORT_SKEY = "ks.report.sKey.";//秘钥
        public static final String KS_REPORT_IV = "ks.report.iv.";//向量
        public static final String KS_REPORT_NETTY_IP = "ks.report.netty.ip";//市局上报ip
        public static final String KS_REPORT_NETTY_PORT = "ks.report.netty.port";//市局上报端口
    }

    /**
     * 市局设备编码-感知设备
     */
    @AllArgsConstructor
    @Getter
    public enum ReportEquipType {

        // 露天矿山边坡表面位移设备 边坡表面X方向位移 边坡表面Y方向位移 边坡表面Z方向位移
        SURFACE_DIS_DEV("HZD770101","HZD77010101","HZD77010102","HZD77010103");

        private String type;
        private String childParamX;
        private String childParamY;
        private String childParamZ;
    }

}

